package cn.com.bluemoon.daps.model.vo;

import cn.com.bluemoon.daps.common.domain.UserPermissionApi;
import cn.com.bluemoon.daps.model.entity.DapDataModelTable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import java.io.Serializable;
import java.util.List;

@Data
@ApiModel(description = "新增数据模型下属表接收对象")
public class DataModelTableInsertVO implements UserPermissionApi {

    @Valid
    private DapDataModelTable dapDataModelTable;

    @ApiModelProperty(value = "系统标签id")
    private List<String> sysTags;

    @Override
    public Serializable getUserPermissionKeyValue() {
        return dapDataModelTable.getDataModelId();
    }
}
